<?php

namespace UF\AccountBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;


class AccountController extends Controller
{
    
    public function listAccountsAction()
    {
    	$session=$this->getRequest()->getSession();
    	
    	$user=$this->get('security.context')->getToken()->getUser();
    	
    	$name = $user->getUsername();
    	
        return $this->render('UFAccountBundle:Accounts:accountsList.html.twig', array('name' => $name));
    }
    
    public function addAccountAction()
    {
    	return $this->render('UFAccountBundle:Accounts:addAccount.html.twig');
    }
    
    public function deleteAccountAction($accountId)
    {
    	return $this->render('UFAccountBundle:Accounts:accountsList.html.twig');
    }
    
    public function modifyAccountAction($accountId)
    {
    	return $this->render('UFAccountBundle:Account:addAccount.html.twig');
    }
    
    public function seeAccountAction($accountId)
    {
    	return $this->render('UFAccountBundle:Account:seeAccount.html.twig');
    }
    
}
